<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp version="2.0" xmlns:c="http://java.sun.com/jsp/jstl/core"
     xmlns:jsp="http://java.sun.com/JSP/Page"
     xmlns="http://www.w3.org/1999/xhtml" >
  <html>
  <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript"
    src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
    <script>
      $(document).ready(function() {
        $('#submit').click(function(event) {
          var login=$('#login').val();
          var password=$('#password').val();
          $.post('authorization',{login:login,password:password},function(responseText) {
            if ((responseText == "Неверно введен пароль")||(responseText == "Такого логина не существует"))
              $('#content_bottom').html(responseText);
            else
              $('#body').html(responseText);

          });

        });
      });
    </script>
  </head>
  <body>
        <p>Введите логин
        <p><input type="text" id="login"/>
        <p>Введите пароль
        <p><input type="password" id="password"/>
        <p/><input  type="button" id="submit" value="Войти"/>
  </body>
  </html>
</jsp>